import request from './request'

export const getSharelockData = () => {
  return request({
    url: '/sharelock/getdatass',
    method: 'GET',
    headers: {
      token: localStorage.getItem('token') || ''
    }
  })
}

export const getSharelock = (page, limit, data) => {
  // console.log(data)
  return request({
    url: `/sharelock/paging/${page}/${limit}`,
    method: 'POST',
    headers: {
      token: localStorage.getItem('token') || ''
    },
    data
  })
}

export const getLockdata = (staffid, position) => {
  // console.log(data)
  return request({
    url: `/sharelock/getdatauser/${staffid}/${position}`,
    method: 'GET',
    headers: {
      token: localStorage.getItem('token') || ''
    }
  })
}
